
import { RouterURL, routerAuth as requireAuth } from '@/common/env'

const About = () => import(/* webpackChunkName: "about" */ '@/pages/About')
const Login = () => import(/* webpackChunkName: "commom-login" */ '@/pages/common/Login')
const NotFound = () => import(/* webpackChunkName: "common-NotFound" */ '@/pages/common/NotFound')

const Routers = [
  {
    path: RouterURL.index.path,
    name: RouterURL.index.name,
    meta: {
      title: RouterURL.index.title
    },
    redirect: RouterURL.login.path
  },
  {
    path: RouterURL['*'].path,
    name: RouterURL['*'].name,
    meta: {
      title: RouterURL['*'].title
    },
    component: NotFound
  },
  {
    path: RouterURL.login.path,
    name: RouterURL.login.name,
    meta: {
      title: RouterURL.login.title
    },
    component: Login
  },
  {
    path: RouterURL.about.path,
    name: RouterURL.about.name,
    meta: {
      title: RouterURL.about.title
    },
    component: About
  }
]

export default Routers
